package com.example.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.common.b_pojo.BRole;
import org.apache.ibatis.annotations.Mapper;

/**
* @author 111
* @description 针对表【b_role】的数据库操作Mapper
* @createDate 2024-08-11 12:29:35
* @Entity com.example.common.b_pojo.BRole
*/
@Mapper
public interface BRoleMapper extends BaseMapper<BRole> {

    Page<BRole> selectAllRole(Page<BRole> page, LambdaQueryWrapper lambdaQueryWrapper);

    int insertRoleandPermission(Long roleId, Long permissionId);

    int delectRoleandPermission(Long roleId);

    int startRoleByRoleId(Long id);
}
